//
//  XiaoximenParty.h
//  Xiaoximen_iOS
//
//  Created by Wang Zhongyu on 12-7-19.
//  Copyright (c) 2012年 Peking University. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "XiaoximenPerson.h"
#import "XiaoximenVotePlace.h"
#import "XiaoximenVoteTime.h"

@interface XiaoximenParty : NSObject
@property (nonatomic) NSUInteger ID;
@property (strong, nonatomic) NSString *host;
@property (strong, nonatomic) NSString *title;
@property (strong, nonatomic) NSMutableArray *places;
@property (strong, nonatomic) NSMutableArray *persons;
@property (strong, nonatomic) NSMutableArray *timeIntervals;


- (id)initWithHostName:(NSString *)hostName
			themeTitle:(NSString *)themeTitle
			   partyID:(NSUInteger)partyID;
- (void)addPersonWithPhoneString:(NSString *)phoneString
						userName:(NSString *)userName
						personID:(NSUInteger)personID;
- (void)addTimeWithStartDate:(NSDate *)start
					 endDate:(NSDate *)end
					  timeID:(NSUInteger)timeID;
- (void)addPlaceWithPlaceName:(NSString *)name
					  placeID:(NSUInteger)placeID;
+ (NSArray *)demoParties;

@end
